[INFO] cloning repository https://github.com/chadoor/w40
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chadoor/w40" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchadoor%2Fw40", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchadoor%2Fw40'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 07a4656a2f213f01cef75e74330671d04ca79b66
[INFO] checking chadoor/w40 against master#82310651b93a594a3fd69015e1562186a080d94c for pr-145770
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchadoor%2Fw40" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/chadoor/w40
[INFO] finished tweaking git repo https://github.com/chadoor/w40
[INFO] tweaked toml for git repo https://github.com/chadoor/w40 written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/chadoor/w40 on toolchain 82310651b93a594a3fd69015e1562186a080d94c
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/chadoor/w40 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] eb5e90367aa06ae434c1fe79817253ca7da7bda0b8d453ef062adcbc03e5a6af
[INFO] running `Command { std: "docker" "start" "-a" "eb5e90367aa06ae434c1fe79817253ca7da7bda0b8d453ef062adcbc03e5a6af", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "eb5e90367aa06ae434c1fe79817253ca7da7bda0b8d453ef062adcbc03e5a6af", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "eb5e90367aa06ae434c1fe79817253ca7da7bda0b8d453ef062adcbc03e5a6af", kill_on_drop: false }`
[INFO] [stdout] eb5e90367aa06ae434c1fe79817253ca7da7bda0b8d453ef062adcbc03e5a6af
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] dbbdf7f204bb98450c0e4748d903baa2e3be6f2e452016438a90f5ae1e3d5894
[INFO] running `Command { std: "docker" "start" "-a" "dbbdf7f204bb98450c0e4748d903baa2e3be6f2e452016438a90f5ae1e3d5894", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.69
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]    Compiling libc v0.2.150
[INFO] [stderr]    Compiling serde v1.0.193
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]     Checking itoa v1.0.9
[INFO] [stderr]     Checking ppv-lite86 v0.2.17
[INFO] [stderr]     Checking memchr v2.6.4
[INFO] [stderr]     Checking ryu v1.0.15
[INFO] [stderr]    Compiling serde_json v1.0.108
[INFO] [stderr]     Checking csv-core v0.1.11
[INFO] [stderr]    Compiling quote v1.0.33
[INFO] [stderr]     Checking getrandom v0.2.11
[INFO] [stderr]    Compiling syn v2.0.39
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling serde_derive v1.0.193
[INFO] [stderr]     Checking csv v1.3.0
[INFO] [stderr]     Checking w40k v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/combat.rs:4:14
[INFO] [stdout]   |
[INFO] [stdout] 4 |     weapon::{self, Weapon},
[INFO] [stdout]   |              ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::vec`
[INFO] [stdout]  --> src/unit_builder.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::vec;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Metadata`
[INFO] [stdout]  --> src/unit_builder.rs:7:21
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::fs::{self, Metadata};
[INFO] [stdout]   |                     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::combat::*`
[INFO] [stdout]  --> src/main.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::combat::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `model::Model`
[INFO] [stdout]   --> src/main.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use model::Model;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `unit::Unit`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use unit::Unit;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/combat.rs:4:14
[INFO] [stdout]   |
[INFO] [stdout] 4 |     weapon::{self, Weapon},
[INFO] [stdout]   |              ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::vec`
[INFO] [stdout]  --> src/unit_builder.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::vec;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Metadata`
[INFO] [stdout]  --> src/unit_builder.rs:7:21
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::fs::{self, Metadata};
[INFO] [stdout]   |                     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::combat::*`
[INFO] [stdout]  --> src/main.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::combat::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `model::Model`
[INFO] [stdout]   --> src/main.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use model::Model;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `unit::Unit`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use unit::Unit;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `armor_save`
[INFO] [stdout]    --> src/combat.rs:134:9
[INFO] [stdout]     |
[INFO] [stdout] 134 |     let armor_save = selected_model.get_a_save();
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_armor_save`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i_save`
[INFO] [stdout]    --> src/combat.rs:135:9
[INFO] [stdout]     |
[INFO] [stdout] 135 |     let i_save = selected_model.get_i_save();
[INFO] [stdout]     |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_i_save`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/combat.rs:132:9
[INFO] [stdout]     |
[INFO] [stdout] 132 |     let mut selected_model = &unit.get_models_mut()[selected_index];
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `counter`
[INFO] [stdout]   --> src/unit.rs:27:17
[INFO] [stdout]    |
[INFO] [stdout] 27 |         let mut counter: i32;
[INFO] [stdout]    |                 ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_counter`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `armor_save`
[INFO] [stdout]    --> src/combat.rs:134:9
[INFO] [stdout]     |
[INFO] [stdout] 134 |     let armor_save = selected_model.get_a_save();
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_armor_save`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i_save`
[INFO] [stdout]    --> src/combat.rs:135:9
[INFO] [stdout]     |
[INFO] [stdout] 135 |     let i_save = selected_model.get_i_save();
[INFO] [stdout]     |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_i_save`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/combat.rs:132:9
[INFO] [stdout]     |
[INFO] [stdout] 132 |     let mut selected_model = &unit.get_models_mut()[selected_index];
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `counter`
[INFO] [stdout]   --> src/unit.rs:27:17
[INFO] [stdout]    |
[INFO] [stdout] 27 |         let mut counter: i32;
[INFO] [stdout]    |                 ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_counter`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/weapon.rs:89:17
[INFO] [stdout]    |
[INFO] [stdout] 89 |                 _ => "".to_string(),
[INFO] [stdout]    |                 ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]   --> src/weapon.rs:89:17
[INFO] [stdout]    |
[INFO] [stdout] 84 |                 Ability::ANTI(ref target, value) => format!("ANTI({}, {})", target, value),
[INFO] [stdout]    |                 -------------------------------- matches some of the same values
[INFO] [stdout] 85 |                 Ability::ASSAULT => "ASSAULT".to_string(),
[INFO] [stdout]    |                 ---------------- matches some of the same values
[INFO] [stdout] 86 |                 Ability::HEAVY => "HEAVY".to_string(),
[INFO] [stdout]    |                 -------------- matches some of the same values
[INFO] [stdout] 87 |                 Ability::PISTOL => "PISTOL".to_string(),
[INFO] [stdout]    |                 --------------- matches some of the same values
[INFO] [stdout] 88 |                 Ability::NONE => "NONE".to_string(),
[INFO] [stdout] 89 |                 _ => "".to_string(),
[INFO] [stdout]    |                 ^ ...and 1 other patterns collectively make this unreachable
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/weapon.rs:89:17
[INFO] [stdout]    |
[INFO] [stdout] 89 |                 _ => "".to_string(),
[INFO] [stdout]    |                 ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]   --> src/weapon.rs:89:17
[INFO] [stdout]    |
[INFO] [stdout] 84 |                 Ability::ANTI(ref target, value) => format!("ANTI({}, {})", target, value),
[INFO] [stdout]    |                 -------------------------------- matches some of the same values
[INFO] [stdout] 85 |                 Ability::ASSAULT => "ASSAULT".to_string(),
[INFO] [stdout]    |                 ---------------- matches some of the same values
[INFO] [stdout] 86 |                 Ability::HEAVY => "HEAVY".to_string(),
[INFO] [stdout]    |                 -------------- matches some of the same values
[INFO] [stdout] 87 |                 Ability::PISTOL => "PISTOL".to_string(),
[INFO] [stdout]    |                 --------------- matches some of the same values
[INFO] [stdout] 88 |                 Ability::NONE => "NONE".to_string(),
[INFO] [stdout] 89 |                 _ => "".to_string(),
[INFO] [stdout]    |                 ^ ...and 1 other patterns collectively make this unreachable
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Dog` is never constructed
[INFO] [stdout]   --> src/main.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 17 | struct Dog {
[INFO] [stdout]    |        ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DogOwner` is never constructed
[INFO] [stdout]   --> src/main.rs:24:8
[INFO] [stdout]    |
[INFO] [stdout] 24 | struct DogOwner {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `example` is never used
[INFO] [stdout]   --> src/main.rs:29:4
[INFO] [stdout]    |
[INFO] [stdout] 29 | fn example() {
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `deserialize` is never used
[INFO] [stdout]   --> src/main.rs:48:4
[INFO] [stdout]    |
[INFO] [stdout] 48 | fn deserialize() {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `t_a_save` is never used
[INFO] [stdout]  --> src/combat.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub fn t_a_save(a_save: i32, ap: i32, i_save: i32) -> bool {
[INFO] [stdout]   |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `attack` is never used
[INFO] [stdout]   --> src/combat.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub fn attack(attacking_unit: &Unit, defending_unit: &mut Unit) {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `select_defender` is never used
[INFO] [stdout]    --> src/combat.rs:106:8
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub fn select_defender(unit: &mut Unit) -> &mut Model {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Model` is never constructed
[INFO] [stdout]  --> src/model.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct Model {
[INFO] [stdout]   |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/model.rs:18:12
[INFO] [stdout]     |
[INFO] [stdout] 17  | impl Model {
[INFO] [stdout]     | ---------- associated items in this implementation
[INFO] [stdout] 18  |     pub fn new(name: String, toughness: i32, a_save: i32, wounds: i32, count: u8) -> Model {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 31  |     pub fn description(&self) -> String {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 38  |     pub fn add_keyword(&mut self, keyword: String) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 42  |     pub fn add_keyword_v(&mut self, keywords: Vec<String>) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 46  |     pub fn add_keyword_vr(&mut self, keywords: &Vec<String>) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 50  |     pub fn add_weapon(&mut self, weapon: Weapon) {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 54  |     pub fn add_weapon_v(&mut self, weapons: &mut Vec<Weapon>) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 58  |     pub fn take_damage(&mut self, damage: i32) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 65  |     pub fn set_i_save(&mut self, i_save: i32) {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 69  |     pub fn get_name(&self) -> &String {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 73  |     pub fn get_toughness(&self) -> i32 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 77  |     pub fn get_a_save(&self) -> i32 {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 81  |     pub fn get_i_save(&self) -> i32 {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 85  |     pub fn get_wounds(&self) -> i32 {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 89  |     pub fn get_weapon(&self) -> &Vec<Weapon> {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 93  |     pub fn get_weapon_names(&self) -> String {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 100 |     pub fn get_keywords(&self) -> &Vec<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 104 |     pub fn get_model_dummy(&self) {}
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 105 |
[INFO] [stdout] 106 |     pub fn get_count(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UnitProfile` is never constructed
[INFO] [stdout]   --> src/n_unit.rs:31:12
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub struct UnitProfile{
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `get_meta_unit_vec` is never used
[INFO] [stdout]   --> src/n_unit.rs:42:12
[INFO] [stdout]    |
[INFO] [stdout] 41 | impl UnitProfile {
[INFO] [stdout]    | ---------------- associated function in this implementation
[INFO] [stdout] 42 |     pub fn get_meta_unit_vec() -> Vec<MetaUnit>{
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Unit` is never constructed
[INFO] [stdout]  --> src/unit.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Unit {
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]   --> src/unit.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl Unit {
[INFO] [stdout]    | --------- associated items in this implementation
[INFO] [stdout] 11 |     pub fn new(name: String, models: Vec<Model>, arsenal: HashMap<String, Vec<Weapon>>) -> Unit {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 15 |     pub fn assign_weapons() {}
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub fn description(&self) {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |     pub fn get_models(&self) -> &Vec<Model> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 61 |     pub fn get_models_mut(&mut self) -> &mut Vec<Model> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 65 |     pub fn get_first_model(&self) -> Option<&Model> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 69 |     pub fn get_first_model_mut(&mut self) -> Option<&mut Model> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 73 |     pub fn remove_dead_models(&mut self) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_json_model_file` is never used
[INFO] [stdout]   --> src/unit_builder.rs:18:4
[INFO] [stdout]    |
[INFO] [stdout] 18 | fn read_json_model_file(file_path: &str) -> HashMap<String, Vec<Model>> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `build_arsenal_from_json` is never used
[INFO] [stdout]   --> src/unit_builder.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub fn build_arsenal_from_json(file_path: &str) -> HashMap<String, Vec<Weapon>> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `w_table` is never used
[INFO] [stdout]  --> src/weapon.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn w_table(strenght: u8, tougness: u8) -> u8 {
[INFO] [stdout]   |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Ability` is never used
[INFO] [stdout]   --> src/weapon.rs:19:10
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub enum Ability {
[INFO] [stdout]    |          ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Weapon` is never constructed
[INFO] [stdout]   --> src/weapon.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub struct Weapon {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/weapon.rs:41:12
[INFO] [stdout]     |
[INFO] [stdout] 40  | impl Weapon {
[INFO] [stdout]     | ----------- associated items in this implementation
[INFO] [stdout] 41  |     pub fn new(
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 65  |     pub fn damage(&self) -> i32 {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 75  |     pub fn deal_damage(&self, damage: i32, model: &mut Model) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 79  |     pub fn description(&self) -> String {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 115 |     pub fn hit(&self) -> (bool, i32) {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 140 |     pub fn wound(&self, d_tougness: u8, keyswords: &Vec<String>) -> (bool, u8, u8) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 164 |     pub fn get_name(&self) -> &String {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 168 |     pub fn get_n_attacks(&self) -> i32 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 172 |     pub fn get_w_skill(&self) -> i32 {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 176 |     pub fn get_strength(&self) -> i32 {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 180 |     pub fn get_ap(&self) -> i32 {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Dog` is never constructed
[INFO] [stdout]   --> src/main.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 17 | struct Dog {
[INFO] [stdout]    |        ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DogOwner` is never constructed
[INFO] [stdout]   --> src/main.rs:24:8
[INFO] [stdout]    |
[INFO] [stdout] 24 | struct DogOwner {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `example` is never used
[INFO] [stdout]   --> src/main.rs:29:4
[INFO] [stdout]    |
[INFO] [stdout] 29 | fn example() {
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `deserialize` is never used
[INFO] [stdout]   --> src/main.rs:48:4
[INFO] [stdout]    |
[INFO] [stdout] 48 | fn deserialize() {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `t_a_save` is never used
[INFO] [stdout]  --> src/combat.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub fn t_a_save(a_save: i32, ap: i32, i_save: i32) -> bool {
[INFO] [stdout]   |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `attack` is never used
[INFO] [stdout]   --> src/combat.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub fn attack(attacking_unit: &Unit, defending_unit: &mut Unit) {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `select_defender` is never used
[INFO] [stdout]    --> src/combat.rs:106:8
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub fn select_defender(unit: &mut Unit) -> &mut Model {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Model` is never constructed
[INFO] [stdout]  --> src/model.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct Model {
[INFO] [stdout]   |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/model.rs:18:12
[INFO] [stdout]     |
[INFO] [stdout] 17  | impl Model {
[INFO] [stdout]     | ---------- associated items in this implementation
[INFO] [stdout] 18  |     pub fn new(name: String, toughness: i32, a_save: i32, wounds: i32, count: u8) -> Model {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 31  |     pub fn description(&self) -> String {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 38  |     pub fn add_keyword(&mut self, keyword: String) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 42  |     pub fn add_keyword_v(&mut self, keywords: Vec<String>) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 46  |     pub fn add_keyword_vr(&mut self, keywords: &Vec<String>) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 50  |     pub fn add_weapon(&mut self, weapon: Weapon) {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 54  |     pub fn add_weapon_v(&mut self, weapons: &mut Vec<Weapon>) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 58  |     pub fn take_damage(&mut self, damage: i32) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 65  |     pub fn set_i_save(&mut self, i_save: i32) {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 69  |     pub fn get_name(&self) -> &String {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 73  |     pub fn get_toughness(&self) -> i32 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 77  |     pub fn get_a_save(&self) -> i32 {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 81  |     pub fn get_i_save(&self) -> i32 {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 85  |     pub fn get_wounds(&self) -> i32 {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 89  |     pub fn get_weapon(&self) -> &Vec<Weapon> {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 93  |     pub fn get_weapon_names(&self) -> String {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 100 |     pub fn get_keywords(&self) -> &Vec<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 104 |     pub fn get_model_dummy(&self) {}
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 105 |
[INFO] [stdout] 106 |     pub fn get_count(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UnitProfile` is never constructed
[INFO] [stdout]   --> src/n_unit.rs:31:12
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub struct UnitProfile{
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `get_meta_unit_vec` is never used
[INFO] [stdout]   --> src/n_unit.rs:42:12
[INFO] [stdout]    |
[INFO] [stdout] 41 | impl UnitProfile {
[INFO] [stdout]    | ---------------- associated function in this implementation
[INFO] [stdout] 42 |     pub fn get_meta_unit_vec() -> Vec<MetaUnit>{
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Unit` is never constructed
[INFO] [stdout]  --> src/unit.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Unit {
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]   --> src/unit.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl Unit {
[INFO] [stdout]    | --------- associated items in this implementation
[INFO] [stdout] 11 |     pub fn new(name: String, models: Vec<Model>, arsenal: HashMap<String, Vec<Weapon>>) -> Unit {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 15 |     pub fn assign_weapons() {}
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub fn description(&self) {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |     pub fn get_models(&self) -> &Vec<Model> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 61 |     pub fn get_models_mut(&mut self) -> &mut Vec<Model> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 65 |     pub fn get_first_model(&self) -> Option<&Model> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 69 |     pub fn get_first_model_mut(&mut self) -> Option<&mut Model> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 73 |     pub fn remove_dead_models(&mut self) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_json_model_file` is never used
[INFO] [stdout]   --> src/unit_builder.rs:18:4
[INFO] [stdout]    |
[INFO] [stdout] 18 | fn read_json_model_file(file_path: &str) -> HashMap<String, Vec<Model>> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `build_arsenal_from_json` is never used
[INFO] [stdout]   --> src/unit_builder.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub fn build_arsenal_from_json(file_path: &str) -> HashMap<String, Vec<Weapon>> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `w_table` is never used
[INFO] [stdout]  --> src/weapon.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn w_table(strenght: u8, tougness: u8) -> u8 {
[INFO] [stdout]   |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Ability` is never used
[INFO] [stdout]   --> src/weapon.rs:19:10
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub enum Ability {
[INFO] [stdout]    |          ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Weapon` is never constructed
[INFO] [stdout]   --> src/weapon.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub struct Weapon {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/weapon.rs:41:12
[INFO] [stdout]     |
[INFO] [stdout] 40  | impl Weapon {
[INFO] [stdout]     | ----------- associated items in this implementation
[INFO] [stdout] 41  |     pub fn new(
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 65  |     pub fn damage(&self) -> i32 {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 75  |     pub fn deal_damage(&self, damage: i32, model: &mut Model) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 79  |     pub fn description(&self) -> String {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 115 |     pub fn hit(&self) -> (bool, i32) {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 140 |     pub fn wound(&self, d_tougness: u8, keyswords: &Vec<String>) -> (bool, u8, u8) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 164 |     pub fn get_name(&self) -> &String {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 168 |     pub fn get_n_attacks(&self) -> i32 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 172 |     pub fn get_w_skill(&self) -> i32 {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 176 |     pub fn get_strength(&self) -> i32 {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 180 |     pub fn get_ap(&self) -> i32 {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.19s
[INFO] running `Command { std: "docker" "inspect" "dbbdf7f204bb98450c0e4748d903baa2e3be6f2e452016438a90f5ae1e3d5894", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "dbbdf7f204bb98450c0e4748d903baa2e3be6f2e452016438a90f5ae1e3d5894", kill_on_drop: false }`
[INFO] [stdout] dbbdf7f204bb98450c0e4748d903baa2e3be6f2e452016438a90f5ae1e3d5894
